home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1599 / 1423 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  3.7 KB

  1. Subject: Re: Opening files so that no cr/lf translation is done.
  2. Date: Sat, 21 May 94 0:43:22 CDT
  3. From: Juergen Lock <nox@jelal.north.de>
  4. In-Reply-To: <199405171234.WAA11826@seldon.apanix.apana.org.au>; from "Michael Smith" at May 17, 94 10:04 pm
  5. Message-Id: <9405202243.AA00632@jelal.north.de>
  6.  
  7. Michael Smith writes:
  8.  
  9. > This is a bit of an interesting one - certainly it's been giving me my
  10. > fair share of migraine problems.
  11.  
  12.  sorry i didn't see this earlier... :)
  13. > I made a rash (in restrospect) announcement about the Taylor UUCP
  14. > package a short while ago, let me qualify the state of things now :
  15. > uucico works fine, with the exception of the ability to detatch from
  16. > the controlling terminal.
  17.  
  18.  ok the following is from my 1.03:  try setting HAVE_SETSID 1 in
  19. conf.h (needs recent mintlib), and replace the fork/exit with a hack
  20. with setjmp+tfork where the parent _exit()s and the child waits for
  21. the parent to die and then longjmp back.
  22.  
  23. >  I assume this has something to do with the
  24. > differences between "normal" fork() and the MiNT fork() - this is not
  25. > a terrible problem, although it makes it (AFAIK) impossible for 
  26. > uucico to receive SIGHUP from the modem,
  27.  
  28.  _that_ still would need a real tty driver, MiNTs own never even send
  29. SIGHUP... :(  (and so i made it check the CD line itself on every read and
  30. write...)
  31.  
  32. >  or to put uuxqt in the
  33. > background.
  34.  
  35.  but this works.
  36. > uuxqt does not.
  37. > In particular, compressed newsbatches get mangled.
  38. > This had me stumped for some time - particularly because the 'od' in
  39. > the shu194st.zoo archive on atari.archive has the same problem : so I 
  40. > have two files, of different size, that 'od' to the same file.
  41.  
  42.  sounds like some [fp]open wants a "b", not necessarily in uuxqt...
  43. or put try with a `b' in UNIXMODE and patch isspawn() to still pass
  44. UNIXMODE if !fkeepenv. (assuming isspawn isn't changed from 1.03...)
  45. > Jens - if you're reading this, both thanks _and_ flames - can you fix
  46. > it please? 
  47. > Now, I don't know how many of you have tangled with the innards of
  48. > Taylor, but it's not hugely pretty - everything is abstracted to the 
  49. > n'th degree, which probably makes it _great_ for porting, but learning
  50. > it is no fun at all 8(
  51. > I have verified that the rnews I am using works (feeding it a compressed
  52. > newsbatch results in it being neatly stashed where it should (ownership
  53. > is wrong, ends up as uucp not news, despite sticky bit on /bin/rnews,
  54. > but that's life 8( ) and I can verify that it is correct with 
  55. > tail +2 <newsbatch> |zcat |less
  56.  
  57.  do you have a `b' in UNIXMODE?
  58. > However, if I use uuxqt to invoke rnews, things don't work out.
  59.  
  60.  if your rnews (which is that btw? :) depends on the b in UNIXMODE...
  61.  
  62. >...
  63. > I'm not going to go further - there's too much to wade through, but in
  64. > brief : this routine calls ixsspawn() which takes, amongst many
  65. > other arguments, the filedescriptors in aidescs[0] and [1], which are
  66. > used as stdin and stdout for the command.
  67.  
  68.  mintlib, unlike DOS :) has no `ascii mode' on fds, only on FILE *.
  69. > Somewhere along the line here, translation occurs... 
  70. > I have looked at open.c in the pl44 mintlibs, but the nondiscussion
  71. > of CRMOD has left me none the wiser.
  72.  
  73.  and CRMOD only exists on ttys, not on regular files.
  74. > If anyone has a suggestion, I'm open to ideas...
  75.  
  76.  would you like a look at my diffs for 1.03?  get tuu103d3.zoo from a.a
  77. (older version), or mail me.  forget the 8+3 filename nonsense (we have
  78. minixfs now) but most of the other patches should still be useful for 1.05...
  79.  
  80.  cheers
  81.     Juergen
  82. -- 
  83. J"urgen Lock / nox@jelal.north.de / UUCP: ..!uunet!unido!uniol!jelal!nox
  84.                                 ...ohne Gewehr
  85. PGP public key fingerprint =  8A 18 58 54 03 7B FC 12  1F 8B 63 C7 19 27 CF DA 
  86.